Clarify function_score default match_all behavior - #12720
Open
MdTanwer wants to merge 1 commit into
Open
Conversation
MdTanwer
requested review from
cwperks,
dlvenable,
epugh,
kolchfa-aws,
mgodwan,
peterzhuamazon and
sumobrian
as code owners
June 30, 2026 05:38
|
Thank you for submitting your PR. The PR states are In progress (or Draft) -> Tech review -> Doc review -> Merged. Before you submit your PR for doc review, make sure the content is technically accurate. If you need help finding a tech reviewer, tag a maintainer. When you're ready for doc review, tag the assignee of this PR. The doc reviewer may push edits to the PR directly or leave comments and editorial suggestions for you to address (let us know in a comment if you have a preference). |
MdTanwer
marked this pull request as draft
June 30, 2026 05:39
Document that omitting query defaults to match_all, that function filters affect scoring not inclusion, and why unmatched docs score 1. Signed-off-by: MdTanwer <tanw9004167@gmail.com>
MdTanwer
force-pushed
the
docs/function-score-default-match-all-21172
branch
from
June 30, 2026 05:44
4147879 to
ec1bea1
Compare
MdTanwer
marked this pull request as ready for review
June 30, 2026 05:44
Collaborator
|
@mgodwan Could you review this PR for technical accuracy? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
queryinfunction_scoredefaults tomatch_allwith a base score of1filters affect scoring, not document inclusion_score: 1with default settingsboolquery workaround for filtering by function filtersResolves documentation gap identified in opensearch-project/OpenSearch#21172.